
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>ST_LineInterpolatePoint · PostGIS中文指南</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="xxx">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism-okaidia.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-folding-chapters/folding-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="ST_3dLineInterpolatePoint.html" />
    
    

    <script src="../../gitbook/gitbook-plugin-graph/d3.min.js"></script>
    <script src="../../gitbook/gitbook-plugin-graph/function-plot.js"></script>    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">第 Ⅰ 部分：PostGIS基础</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    一 初识PostGIS
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../introduction/PostgisAbility.html">
            
                <a href="../../introduction/PostgisAbility.html">
            
                    
                    1.1 PostGIS特性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../introduction/PostgisAbility.html">
            
                <a href="../../introduction/PostgisAbility.html">
            
                    
                    1.2 PostGIS使用场景
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="../../installation/PostgreSQL Installation.html">
            
                <a href="../../installation/PostgreSQL Installation.html">
            
                    
                    1.2.1 适用场景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.2" data-path="../../installation/PostGIS Installation.html">
            
                <a href="../../installation/PostGIS Installation.html">
            
                    
                    1.2.2 不适用场景
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../../introduction/PostgisAbility.html">
            
                <a href="../../introduction/PostgisAbility.html">
            
                    
                    1.3 PostGIS使用建议
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" >
            
                <span>
            
                    
                    1.4 PostGIS安装
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.4.1" data-path="../../installation/PostgreSQL Installation.html">
            
                <a href="../../installation/PostgreSQL Installation.html">
            
                    
                    1.4.1 PostgreSQL安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4.2" data-path="../../installation/PostGIS Installation.html">
            
                <a href="../../installation/PostGIS Installation.html">
            
                    
                    1.4.2 PostGIS安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../../introduction/ReleaseNotes.html">
            
                <a href="../../introduction/ReleaseNotes.html">
            
                    
                    1.5 PostGIS重大版本
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    二 PostGIS入门
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" >
            
                <span>
            
                    
                    2.1 客户端介绍
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" >
            
                <span>
            
                    
                    2.1.1 psql
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" >
            
                <span>
            
                    
                    2.1.2 qgis
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" >
            
                <span>
            
                    
                    2.2 空间数据库
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" >
            
                <span>
            
                    
                    2.3 数据导入
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1" >
            
                <span>
            
                    
                    2.3.1 shp
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2" >
            
                <span>
            
                    
                    2.3.2 csv
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.3" >
            
                <span>
            
                    
                    2.3.3 excel
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">第 Ⅱ 部分：API手册</li>
        
        
    
        <li class="chapter " data-level="2.1" >
            
                <span>
            
                    
                    八 矢量函数
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" >
            
                <span>
            
                    
                    8.2 空间表管理
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1.1" data-path="../TableManager/AddGeometryColumn.html">
            
                <a href="../TableManager/AddGeometryColumn.html">
            
                    
                    8.2.1 AddGeometryColumn
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.1.2" data-path="../TableManager/DropGeometryColumn.html">
            
                <a href="../TableManager/DropGeometryColumn.html">
            
                    
                    8.2.2 DropGeometryColumn
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.1.3" data-path="../TableManager/DropGeometryTable.html">
            
                <a href="../TableManager/DropGeometryTable.html">
            
                    
                    8.2.3 DropGeometryTable
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.1.4" data-path="../TableManager/Find_SRID.html">
            
                <a href="../TableManager/Find_SRID.html">
            
                    
                    8.2.4 Find_SRID
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.1.5" data-path="../TableManager/Populate_Geometry_Columns.html">
            
                <a href="../TableManager/Populate_Geometry_Columns.html">
            
                    
                    8.2.5 Populate_Geometry_Columns
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.1.6" data-path="../TableManager/UpdateGeometrySRID.html">
            
                <a href="../TableManager/UpdateGeometrySRID.html">
            
                    
                    8.2.6 UpdateGeometrySRID
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.1.2" >
            
                <span>
            
                    
                    8.4 元数据读写
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.2.1" data-path="../Accessors.html">
            
                <a href="../Accessors.html#GeometryType">
            
                    
                    GeometryType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.2" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_GeometryType">
            
                    
                    ST_GeometryType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.3" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_CoordDim">
            
                    
                    ST_CoordDim与ST_NDims
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.4" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_Dimension">
            
                    
                    ST_Dimension
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.5" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_Zmflag">
            
                    
                    ST_Zmflag
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.6" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_HasArc">
            
                    
                    ST_HasArc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.7" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_IsPolygonCCW">
            
                    
                    ST_IsPolygonCCW
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.8" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_IsPolygonCW">
            
                    
                    ST_IsPolygonCW
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.9" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_IsClosed">
            
                    
                    ST_IsClosed
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.10" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_IsCollection">
            
                    
                    ST_IsCollection
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.11" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_IsEmpty">
            
                    
                    ST_IsEmpty
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.12" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_IsRing">
            
                    
                    ST_IsRing
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.13" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_IsSimple">
            
                    
                    ST_IsSimple
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.14" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_Boundary">
            
                    
                    ST_Boundary
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.15" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_Envelope">
            
                    
                    ST_Envelope
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.16" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_BoundingDiagonal">
            
                    
                    ST_BoundingDiagonal
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.17" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_X">
            
                    
                    ST_X,ST_Y,ST_Z,ST_M
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.18" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_StartPoint">
            
                    
                    ST_StartPoint,ST_EndPoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.19" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_NumGeometries">
            
                    
                    ST_NumGeometries,ST_GeometryN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.20" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_NRings">
            
                    
                    ST_NRings,ST_ExteriorRing,ST_NumInteriorRings,ST_NumInteriorRing,ST_InteriorRingN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.21" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_NumPatches">
            
                    
                    ST_NumPatches,ST_PatchN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.22" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_NPoints">
            
                    
                    ST_NPoints,ST_NumPoints,ST_PointN,ST_Points
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.23" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_MemSize">
            
                    
                    ST_MemSize
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.24" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_Summary">
            
                    
                    ST_Summary
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2.25" data-path="../Accessors.html">
            
                <a href="../Accessors.html#ST_Dump">
            
                    
                    ST_Dump,ST_DumpPoints,ST_DumpRings
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.1.3" >
            
                <span>
            
                    
                    8.11 空间关系
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.3.1" data-path="../SpatialRelationships.html">
            
                <a href="../SpatialRelationships.html#ST_Intersects">
            
                    
                    ST_Intersects
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.2" data-path="../SpatialRelationships.html">
            
                <a href="../SpatialRelationships.html#ST_Intersects">
            
                    
                    ST_Disjoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.3" data-path="../SpatialRelationships.html">
            
                <a href="../SpatialRelationships.html#ST_Contains">
            
                    
                    ST_Contains
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.4" data-path="../SpatialRelationships.html">
            
                <a href="../SpatialRelationships.html#ST_Contains">
            
                    
                    ST_Within
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.5" data-path="../SpatialRelationships.html">
            
                <a href="../SpatialRelationships.html#ST_Equals">
            
                    
                    ST_Equals
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.6" data-path="../SpatialRelationships.html">
            
                <a href="../SpatialRelationships.html#ST_ContainsProperly">
            
                    
                    ST_ContainsProperly
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.7" data-path="../SpatialRelationships.html">
            
                <a href="../SpatialRelationships.html#ST_Covers">
            
                    
                    ST_Covers
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.8" data-path="../SpatialRelationships.html">
            
                <a href="../SpatialRelationships.html#ST_Covers">
            
                    
                    ST_CoveredBy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.9" data-path="../SpatialRelationships.html">
            
                <a href="../SpatialRelationships.html#ST_Overlaps">
            
                    
                    ST_Overlaps
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.10" data-path="../SpatialRelationships.html">
            
                <a href="../SpatialRelationships.html#ST_Overlaps">
            
                    
                    ST_Crosses
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.11" data-path="../SpatialRelationships.html">
            
                <a href="../SpatialRelationships.html#ST_Touches">
            
                    
                    ST_Touches
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.12" data-path="../SpatialRelationships.html">
            
                <a href="../SpatialRelationships.html#ST_Relate">
            
                    
                    ST_Relate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3.13" data-path="../SpatialRelationships.html">
            
                <a href="../SpatialRelationships.html#ST_RelateMatch">
            
                    
                    ST_RelateMatch
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.1.4" >
            
                <span>
            
                    
                    8.12 空间测量
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.4.1" data-path="../Measurement/ST_3DClosestPoint.html">
            
                <a href="../Measurement/ST_3DClosestPoint.html#ST_3DClosestPoint">
            
                    
                    ST_3DClosestPoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4.2" data-path="../Measurement/ST_3DDistance.html">
            
                <a href="../Measurement/ST_3DDistance.html">
            
                    
                    ST_3DDistance
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4.3" data-path="../Measurement/ST_Angle.html">
            
                <a href="../Measurement/ST_Angle.html">
            
                    
                    ST_Angle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4.4" data-path="../Measurement/ST_Area.html">
            
                <a href="../Measurement/ST_Area.html">
            
                    
                    ST_Area
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4.5" data-path="../Measurement/ST_Azimuth.html">
            
                <a href="../Measurement/ST_Azimuth.html">
            
                    
                    ST_Azimuth
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4.6" data-path="../Measurement/ST_ClosestPoint.html">
            
                <a href="../Measurement/ST_ClosestPoint.html">
            
                    
                    ST_ClosestPoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4.7" data-path="../Measurement/ST_Distance.html">
            
                <a href="../Measurement/ST_Distance.html">
            
                    
                    ST_Distance
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4.8" data-path="../Measurement/ST_Project.html">
            
                <a href="../Measurement/ST_Project.html">
            
                    
                    ST_Project
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.1.5" >
            
                <span>
            
                    
                    8.14 仿射变换
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.5.1" data-path="../AffineTransformations/ST_Affine.html">
            
                <a href="../AffineTransformations/ST_Affine.html#ST_Affine">
            
                    
                    ST_Affine
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5.2" data-path="../AffineTransformations/ST_Rotate.html">
            
                <a href="../AffineTransformations/ST_Rotate.html">
            
                    
                    ST_Rotate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5.3" data-path="../AffineTransformations/ST_RotateX.html">
            
                <a href="../AffineTransformations/ST_RotateX.html">
            
                    
                    ST_RotateX
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5.4" data-path="../AffineTransformations/ST_RotateY.html">
            
                <a href="../AffineTransformations/ST_RotateY.html">
            
                    
                    ST_RotateY
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5.5" data-path="../AffineTransformations/ST_RotateZ.html">
            
                <a href="../AffineTransformations/ST_RotateZ.html">
            
                    
                    ST_RotateZ
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5.6" data-path="../AffineTransformations/ST_Scale.html">
            
                <a href="../AffineTransformations/ST_Scale.html">
            
                    
                    ST_Scale
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5.7" data-path="../AffineTransformations/ST_Translate.html">
            
                <a href="../AffineTransformations/ST_Translate.html">
            
                    
                    ST_Translate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5.8" data-path="../AffineTransformations/ST_TransScale.html">
            
                <a href="../AffineTransformations/ST_TransScale.html">
            
                    
                    ST_TransScale
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.1.6" >
            
                <span>
            
                    
                    8.15 空间聚类
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.6.1" data-path="../Clustering.html">
            
                <a href="../Clustering.html#ST_ClusterDBSCAN">
            
                    
                    ST_ClusterDBSCAN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.6.2" data-path="../Clustering.html">
            
                <a href="../Clustering.html#ST_ClusterIntersecting">
            
                    
                    ST_ClusterIntersecting
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.6.3" data-path="../Clustering.html">
            
                <a href="../Clustering.html#ST_ClusterKMeans">
            
                    
                    ST_ClusterKMeans
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.6.4" data-path="../Clustering.html">
            
                <a href="../Clustering.html#ST_ClusterWithin">
            
                    
                    ST_ClusterWithin
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.1.7" >
            
                <span>
            
                    
                    8.16 线性参考
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="2.1.7.1" data-path="ST_LineInterpolatePoint.html">
            
                <a href="ST_LineInterpolatePoint.html">
            
                    
                    ST_LineInterpolatePoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7.2" data-path="ST_3dLineInterpolatePoint.html">
            
                <a href="ST_3dLineInterpolatePoint.html">
            
                    
                    ST_3dLineInterpolatePoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7.3" data-path="ST_LineInterpolatePoints.html">
            
                <a href="ST_LineInterpolatePoints.html">
            
                    
                    ST_LineInterpolatePoints
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7.4" data-path="ST_LineLocatePoint.html">
            
                <a href="ST_LineLocatePoint.html">
            
                    
                    ST_LineLocatePoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7.5" data-path="ST_LineSubstring.html">
            
                <a href="ST_LineSubstring.html">
            
                    
                    ST_LineSubstring
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7.6" data-path="ST_LocateAlong.html">
            
                <a href="ST_LocateAlong.html">
            
                    
                    ST_LocateAlong
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7.7" data-path="ST_LocateBetween.html">
            
                <a href="ST_LocateBetween.html">
            
                    
                    ST_LocateBetween
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7.8" data-path="ST_LocateBetweenElevations.html">
            
                <a href="ST_LocateBetweenElevations.html">
            
                    
                    ST_LocateBetweenElevations
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7.9" data-path="ST_InterpolatePoint.html">
            
                <a href="ST_InterpolatePoint.html">
            
                    
                    ST_InterpolatePoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7.10" data-path="ST_AddMeasure.html">
            
                <a href="ST_AddMeasure.html">
            
                    
                    ST_AddMeasure
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7.11" data-path="examples.html">
            
                <a href="examples.html">
            
                    
                    综合案例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">第 Ⅲ 部分：PostGIS++</li>
        
        
    

    
        
        <li class="header">第 Ⅳ 部分：常见问题</li>
        
        
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >ST_LineInterpolatePoint</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="stlineinterpolatepoint"><span id="ST_LineInterpolatePoint">ST_LineInterpolatePoint</span></h2>
<h3 id="&#x65B9;&#x6CD5;&#x529F;&#x80FD;&#x63CF;&#x8FF0;">&#x65B9;&#x6CD5;&#x529F;&#x80FD;&#x63CF;&#x8FF0;</h3>
<p>&#x8FD4;&#x56DE;&#x6CBF;LineString(Z,M,ZM)&#x4E0A;&#x67D0;&#x4E00;&#x63D2;&#x503C;&#x70B9;&#x4F4D;&#x7F6E;&#xFF0C;<span class="pg-emphasize pg-emphasize-yellow" style="background: #ff0000;">&#x4E0D;&#x652F;&#x6301;MultiLineString</span>&#x3002;&#x4F8B;&#x5982;&#xFF1A;&#x63D2;&#x503C;&#x70B9;&#x767E;&#x5206;&#x6BD4;0&#x4EE3;&#x8868;&#x7EBF;&#x7684;&#x8D77;&#x70B9;&#xFF0C;0.5&#x4EE3;&#x8868;&#x7EBF;&#x7684;&#x4E2D;&#x70B9;&#xFF0C;1&#x4EE3;&#x8868;&#x7EBF;&#x7684;&#x7EC8;&#x70B9;&#x3002;</p>
<h3 id="&#x51FD;&#x6570;&#x5B9A;&#x4E49;">&#x51FD;&#x6570;&#x5B9A;&#x4E49;</h3>
<pre class="language-"><code>/*
 *@method ST_LineInterpolatePoint
 *@param{geometry} a_linestring LineString(Z,M,ZM)&#x7C7B;&#x578B;
 *@param{float8} a_fraction 0-1&#x4E4B;&#x95F4;&#x7684;&#x5C0F;&#x6570;&#x767E;&#x5206;&#x6BD4;
 *@return {geometry} Point&#x7C7B;&#x578B;&#xFF0C;&#x7EBF;&#x6027;&#x63D2;&#x503C;&#x70B9;&#x7684;&#x4F4D;&#x7F6E;
*/
geometry ST_LineInterpolatePoint(geometry a_linestring, float8 a_fraction);
</code></pre><h3 id="api&#x793A;&#x4F8B;">API&#x793A;&#x4F8B;</h3>
<p><img src="http://localhost:4000/images/LinearReferencing/ST_LineInterpolatePoint.jpg" alt="&#x793A;&#x610F;&#x56FE;"></p>
<p>&#x5DF2;&#x77E5;&#x7EBF;LINESTRING(118 32,119 33)&#xFF0C;&#x5206;&#x522B;&#x8BBE;&#x7F6E;fraction=0,0.5,1&#xFF0C;&#x8FD4;&#x56DE;&#x8BE5;&#x7EBF;&#x7684;&#x8D77;&#x70B9;&#xFF0C;&#x4E2D;&#x70B9;&#xFF0C;&#x7EC8;&#x70B9;&#x3002;</p>
<ul>
<li>fraction=0.5</li>
</ul>
<pre class="language-"><code>--&#x4E2D;&#x70B9;&#x5BF9;&#x5E94;&#x7684;&#x767E;&#x5206;&#x6BD4;&#x662F;0.5&#xFF0C;&#x8D77;&#x70B9;&#x5BF9;&#x5E94;0&#xFF0C;&#x7EC8;&#x70B9;&#x5BF9;&#x5E94;1
SELECT ST_AsText(ST_LineInterpolatePoint(ST_GeomFromText(&apos;LINESTRING(118 32,119 33)&apos;), 0.50));

    st_astext
-------------------
 POINT(118.5 32.5)
</code></pre><ul>
<li>fraction=0</li>
</ul>
<pre class="language-"><code>SELECT ST_AsText(ST_LineInterpolatePoint(ST_GeomFromText(&apos;LINESTRING(118 32,119 33)&apos;), 0));

   st_astext
-------------------
 POINT(118 32)
</code></pre><ul>
<li>fraction=1</li>
</ul>
<pre class="language-"><code>SELECT ST_AsText(ST_LineInterpolatePoint(ST_GeomFromText(&apos;LINESTRING(118 32,119 33)&apos;), 1));
   st_astext
-------------------
 POINT(119 33)
</code></pre><p>ST_LineInterpolatePoint&#x53EF;&#x5904;&#x7406;&#x591A;&#x7EF4;&#x7EBF;&#x5982;LineStringZ,LineStringM,LineStringZM&#x4E09;&#x79CD;&#x7C7B;&#x578B;&#x3002;
&#x9700;&#x8981;&#x6CE8;&#x610F;&#x4EE5;&#x4E0B;&#x51E0;&#x70B9;&#xFF1A;</p>
<ul>
<li>ST_LineInterpolatePoint&#x672C;&#x8D28;&#x53EA;&#x662F;&#x5904;&#x7406;&#x4E8C;&#x7EF4;&#x6570;&#x636E;&#x7684;&#xFF0C;&#x5148;&#x57FA;&#x4E8E;&#x4E8C;&#x7EF4;&#x7B97;&#x4F4D;&#x7F6E;&#xFF0C;&#x57FA;&#x4E8E;&#x4F4D;&#x7F6E;&#x518D;&#x7B97;&#x9644;&#x5E26;&#x7684;z&#x4E0E;m&#xFF0C;&#x5BF9;xyz&#x800C;&#x8A00;&#xFF0C;&#x5176;&#x5B9E;&#x662F;&#x201C;&#x4F2A;&#x4E09;&#x7EF4;&#x8BA1;&#x7B97;&#x201D;&#x3002;</li>
<li>ST_LineInterpolatePoint&#x5E76;&#x4E0D;&#x80FD;&#x5904;&#x7406;&#x771F;&#x6B63;&#x7684;xyz&#x9AD8;&#x7A0B;&#x6570;&#x636E;&#x3002;</li>
<li>&#x5BF9;xyz&#x9AD8;&#x7A0B;&#x6570;&#x636E;&#x5E94;&#x5F53;&#x4F7F;&#x7528;<a href="ST_3dLineInterpolatePoint.html">ST_3dLineInterpolatePoint</a>&#x3002;</li>
</ul>
<p>&#x793A;&#x4F8B;&#x5982;&#x4E0B;&#xFF1A;</p>
<ul>
<li>LineStringZ&#xFF1A;</li>
</ul>
<pre class="language-"><code>SELECT ST_AsText(ST_LineInterpolatePoint(ST_GeomFromText(&apos;LINESTRINGZ(1 1 6, 3 1 3, 3 3 8)&apos;), 0.5));
 st_astext
-------------------
 POINT Z(3 1 3)
</code></pre><ul>
<li>LineStringM&#xFF1A;</li>
</ul>
<pre class="language-"><code>SELECT ST_AsText(ST_LineInterpolatePoint(ST_GeomFromText(&apos;LINESTRINGM(1 1 6, 3 1 3, 3 3 8)&apos;), 0.5));
    st_astext
------------------
 POINT M(3 1 3)
</code></pre><ul>
<li>LineStringZM&#xFF1A;</li>
</ul>
<pre class="language-"><code>SELECT ST_AsText(ST_LineInterpolatePoint(ST_GeomFromText(&apos;LINESTRINGZM(1 1 6 8, 3 1 3 6, 3 3 8 7)&apos;), 0.5));
    st_astext
-------------------
 POINT ZM(3 1 3 6)
</code></pre><p><span class="pg-emphasize pg-emphasize-yellow" style="background: #ff0000;">&#x603B;&#x7ED3;&#xFF1A;ST_LineInterpolatePoint&#x4F4D;&#x7F6E;&#x4EC5;&#x4E0E;XY&#x4F4D;&#x7F6E;&#x76F8;&#x5173;&#xFF0C;&#x4E0E;ZM&#x7EF4;&#x5EA6;&#x65E0;&#x5173;&#xFF0C;&#x4E0D;&#x80FD;&#x5904;&#x7406;&#x201D;&#x771F;&#x4E09;&#x7EF4;&#x8BA1;&#x7B97;&#x201C;&#xFF0C;&#x5982;&#x5E26;Z&#x9AD8;&#x7A0B;&#x503C;&#x7684;&#x4E09;&#x7EF4;&#x7EBF;&#x8BA1;&#x7B97;&#x3002;</span></p>
<h3 id="&#x6848;&#x4F8B;&#x573A;&#x666F;">&#x6848;&#x4F8B;&#x573A;&#x666F;</h3>
<p>&#x80CC;&#x666F;&#xFF1A;&#x7EBF;&#x6027;&#x53C2;&#x8003;&#x5728;&#x9053;&#x8DEF;&#x4E2D;&#x5E94;&#x7528;&#x975E;&#x5E38;&#x5E38;&#x89C1;&#xFF0C;&#x4F8B;&#x5982;&#x9AD8;&#x901F;&#x516C;&#x8DEF;&#x6BCF;&#x516C;&#x91CC;&#x90FD;&#x8BBE;&#x7F6E;&#x6709;&#x91CC;&#x7A0B;&#x6869;&#xFF0C;&#x5B9E;&#x9645;&#x6BCF;&#x4E2A;&#x9AD8;&#x901F;&#x8DEF;&#x6BB5;&#x90FD;&#x4F1A;&#x5EFA;&#x7ACB;&#x7EBF;&#x6027;&#x53C2;&#x8003;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x4EFB;&#x610F;&#x4E00;&#x4E2A;&#x8DEF;&#x6BB5;&#x7684;&#x8D77;&#x70B9;&#x90FD;&#x53EF;&#x4EE5;&#x63CF;&#x8FF0;&#x6210;&#xFF1A;
&#x8DDD;&#x79BB;xx&#x5165;&#x53E3;xx&#x516C;&#x91CC;&#x3002;</p>
<p>&#x95EE;&#x9898;&#xFF1A;&#x5047;&#x8BBE;&#x6709;&#x4E00;&#x6BB5;&#x9AD8;&#x901F;&#x7EBF;&#xFF0C;&#x5176;geometry&#x503C;&#xFF0C;&#x8D77;&#x70B9;&#x662F;&#x8DDD;&#x79BB;xx&#x5165;&#x53E3;50&#x516C;&#x91CC;&#xFF0C;&#x8BE5;&#x8DEF;&#x6BB5;&#x957F;&#x5EA6;&#x662F;10&#x516C;&#x91CC;&#xFF0C;&#x5219;&#x8BE5;&#x8DEF;&#x6BB5;&#x7684;&#x7EC8;&#x70B9;&#x662F;&#x8DDD;&#x79BB;xx&#x5165;&#x53E3;&#xFF08;50+10&#xFF09;&#x516C;&#x91CC;&#xFF0C;&#x67D0;&#x6B21;&#x8BE5;&#x8DEF;&#x6BB5;&#x53D1;&#x751F;&#x4EA4;&#x901A;&#x4E8B;&#x6545;&#xFF0C;
&#x4E8B;&#x6545;&#x70B9;&#x63CF;&#x8FF0;&#x4E3A;xx&#x9AD8;&#x901F;&#x8DDD;&#x79BB;xx&#x5165;&#x53E3;56&#x516C;&#x91CC;&#x5904;&#x53D1;&#x751F;&#x4E8B;&#x6545;&#xFF0C;&#x8981;&#x6C42;&#x8FD4;&#x56DE;&#x4E8B;&#x6545;&#x70B9;&#x771F;&#x5B9E;&#x5730;&#x7406;&#x5750;&#x6807;&#xFF0C;&#x4ECE;&#x800C;&#x80FD;&#x5728;&#x5730;&#x56FE;&#x4E0A;&#x5B9A;&#x4F4D;&#x3002;</p>
<p>&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;</p>
<pre class="language-"><code>--(56-50)*1.0/(60-50)&#x662F;&#x8BA1;&#x7B97;&#x4E8B;&#x6545;&#x70B9;&#x5728;&#x8BE5;&#x8DEF;&#x6BB5;&#x4E2D;&#x7684;&#x767E;&#x5206;&#x6BD4;
select ST_LineInterpolatePoint(line,(56-50)*1.0/(60-50));
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="ST_3dLineInterpolatePoint.html" class="navigation navigation-next navigation-unique" aria-label="Next page: ST_3dLineInterpolatePoint">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"ST_LineInterpolatePoint","level":"2.1.7.1","depth":3,"next":{"title":"ST_3dLineInterpolatePoint","level":"2.1.7.2","depth":3,"path":"vector_function/LinearReferencing/ST_3dLineInterpolatePoint.md","ref":"vector_function/LinearReferencing/ST_3dLineInterpolatePoint.md","articles":[]},"previous":{"title":"8.16 线性参考","level":"2.1.7","depth":2,"ref":"","articles":[{"title":"ST_LineInterpolatePoint","level":"2.1.7.1","depth":3,"path":"vector_function/LinearReferencing/ST_LineInterpolatePoint.md","ref":"vector_function/LinearReferencing/ST_LineInterpolatePoint.md","articles":[]},{"title":"ST_3dLineInterpolatePoint","level":"2.1.7.2","depth":3,"path":"vector_function/LinearReferencing/ST_3dLineInterpolatePoint.md","ref":"vector_function/LinearReferencing/ST_3dLineInterpolatePoint.md","articles":[]},{"title":"ST_LineInterpolatePoints","level":"2.1.7.3","depth":3,"path":"vector_function/LinearReferencing/ST_LineInterpolatePoints.md","ref":"vector_function/LinearReferencing/ST_LineInterpolatePoints.md","articles":[]},{"title":"ST_LineLocatePoint","level":"2.1.7.4","depth":3,"path":"vector_function/LinearReferencing/ST_LineLocatePoint.md","ref":"vector_function/LinearReferencing/ST_LineLocatePoint.md","articles":[]},{"title":"ST_LineSubstring","level":"2.1.7.5","depth":3,"path":"vector_function/LinearReferencing/ST_LineSubstring.md","ref":"vector_function/LinearReferencing/ST_LineSubstring.md","articles":[]},{"title":"ST_LocateAlong","level":"2.1.7.6","depth":3,"path":"vector_function/LinearReferencing/ST_LocateAlong.md","ref":"vector_function/LinearReferencing/ST_LocateAlong.md","articles":[]},{"title":"ST_LocateBetween","level":"2.1.7.7","depth":3,"path":"vector_function/LinearReferencing/ST_LocateBetween.md","ref":"vector_function/LinearReferencing/ST_LocateBetween.md","articles":[]},{"title":"ST_LocateBetweenElevations","level":"2.1.7.8","depth":3,"path":"vector_function/LinearReferencing/ST_LocateBetweenElevations.md","ref":"vector_function/LinearReferencing/ST_LocateBetweenElevations.md","articles":[]},{"title":"ST_InterpolatePoint","level":"2.1.7.9","depth":3,"path":"vector_function/LinearReferencing/ST_InterpolatePoint.md","ref":"vector_function/LinearReferencing/ST_InterpolatePoint.md","articles":[]},{"title":"ST_AddMeasure","level":"2.1.7.10","depth":3,"path":"vector_function/LinearReferencing/ST_AddMeasure.md","ref":"vector_function/LinearReferencing/ST_AddMeasure.md","articles":[]},{"title":"综合案例","level":"2.1.7.11","depth":3,"path":"vector_function/LinearReferencing/examples.md","ref":"vector_function/LinearReferencing/examples.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["pageview-count","prism","-highlight","custom-favicon","-sharing","emphasize","-lunr","-search","search-pro","graph","splitter","hide-element","folding-chapters"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{"css":["prismjs/themes/prism-okaidia.css"]},"emphasize":{},"splitter":{},"search-pro":{},"graph":{},"hide-element":{"elements":[".gitbook-link"]},"fontsettings":{"theme":"white","family":"sans","size":2},"folding-chapters":{},"favicon":"../gitbook/images/favicon.ico","pageview-count":{},"custom-favicon":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"xxx","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"service":"http://localhost:4000"},"title":"PostGIS中文指南","gitbook":"*","description":"记录PostGIS使用入门，进阶，提高，附带API全解析"},"file":{"path":"vector_function/LinearReferencing/ST_LineInterpolatePoint.md","mtime":"2024-07-23T08:43:00.307Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-07-23T09:36:52.257Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-folding-chapters/folding-chapters.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

